import Vue from 'vue'
import App from '@/entryTemplate/Electron.vue'
// 导入路由
import VueRouter from 'vue-router'
import routers from '../router/routersElectron'
// vuex
import Vuex from 'vuex'
import stores from '../store/index'
const router = new VueRouter({
  routes: routers
})
// Vue.use(Vuex)必须在建立Vuex.Store 之前
Vue.use(Vuex)
const store = new Vuex.Store(stores)

Vue.use(VueRouter)
// 解决 can not find a root element
const element = document.createElement('div')
document.body.appendChild(element)
// tslint:disable-next-line: no-unused-expression
new Vue({
  el: element,
  router,
  store,
  render: h => h(App)
})
